<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		
	</head>
	<body>
		<input id="inputId" type="text" value=""/><br/>
		<input type="button" onclick="clickMe()" value="点我"/>
		
		<script type="text/javascript">
			function clickMe() {
				var inputObjs = document.getElementsByTagName('input');
				console.log(inputObjs);
				console.log(inputObjs[1]);
				console.log(inputObjs[2]);
				console.log(inputObjs[3]);
				console.log(inputObjs[0].type);
			}
		</script>
	</body>
</html>